package models

import (
	"gorm.io/gorm"
	"week2/types"
)

type Order struct {
	gorm.Model
	OrderId   string `json:"order_id"`
	ShopId    int    `json:"shop_id"`
	ShopName  string `json:"shop_name"`
	ShopPrice int    `json:"shop_price"`
}

func (o *Order) OrderAdd() error {
	return types.Db.Create(&o).Error
}
